package com.bingwang.sourcelearn.beans.config;

import com.bingwang.sourcelearn.beans.domain.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author WangBing
 * @date 2023/11/4 17:49
 */
@Configuration
@ComponentScan(basePackages = "com.bingwang.sourcelean")
@Conditional(value = SystemCondition.class)
public class JavaConfig {
    @Bean
    public User user() {
        return new User("bingwang maven spring6.x");
    }
}
